Ability

@Serializable
data class Ability(val id: Int, val name: String, val isMainSeries: Boolean, val generation: Handle.Named<Generation>, val names: List<Name>, val effectEntries: List<VerboseEffect>, val effectChanges: List<AbilityEffectChange>, val flavorTextEntries: List<AbilityFlavorText>, val pokemon: List<AbilityPokemon>) : NamedModel(source)

Abilities provide passive effects for Pokémon in battle or in the overworld. Pokémon have multiple possible abilities but only one ability on each individual Pokémon. See: https://pokeapi.co/docs/v2#abilities

Parameters

id

The identifier for this ability resource.

name

The name for this ability resource.

isMainSeries

Whether or not this ability originated in the main series of the video games.

generation

The generation this ability was introduced in.

names

The name of this ability listed in different languages.

effectEntries

The effect of this ability listed in different languages.

effectChanges

The list of past effects this ability has had across version groups.

flavorTextEntries

The flavor text of this ability listed in different languages.

pokemon

A list of Pokémon that could potentially have this ability.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, isMainSeries: Boolean, generation: Handle.Named<Generation>, names: List<Name>, effectEntries: List<VerboseEffect>, effectChanges: List<AbilityEffectChange>, flavorTextEntries: List<AbilityFlavorText>, pokemon: List<AbilityPokemon>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val id: Int
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard